import { request, config } from 'utils'

const { api } = config
const { entityDirectorList, entityDirectorAdd, entityDirectorUpdate, entityDirectorDel, entityDirectorGet } = api
export async function list (params) {
  return request({
    url: entityDirectorList,
    method: 'put',
    data: params,
  })
}
export async function add (params) {
  return request({
    url: entityDirectorAdd,
    method: 'put',
    data: params,
  })
}
export async function edit (params) {
  return request({
    url: entityDirectorUpdate,
    method: 'put',
    data: params,
  })
}
export async function del (params) {
  return request({
    url: entityDirectorDel,
    method: 'put',
    data: params,
  })
}

export async function get (params) {
  return request({
    url: entityDirectorGet,
    method: 'put',
    data: params,
  })
}
